from flask import Flask, jsonify
from flask_sqlalchemy import SQLAlchemy
from interface.Setting import base
from logs.logs import creat_handler

app = Flask(__name__, static_folder=base)
app.config.from_object('interface.Setting')
app.config.from_object('interface.database')
app.config['MAX_CONTENT_LENGTH'] = 1 * 1024 * 1024
db = SQLAlchemy(app)
logger = creat_handler()

from interface.views.Test import testview

app.register_blueprint(testview)

@app.route('/')
def index():
    return jsonify({'path': 'index'})
